import Vue from 'vue'
import ElementUI from 'element-ui';
import eIconPicker from 'e-icon-picker';
import App from './App.vue'
import router from './router'
import store from './store'
import "./axios/filter"
import addRoutes from "./router/addRoutes";

import "e-icon-picker/lib/symbol.js"; //基本彩色图标库
import 'e-icon-picker/lib/index.css'; // 基本样式，包含基本图标
import 'font-awesome/css/font-awesome.min.css'; //font-awesome 图标库
import 'element-ui/lib/theme-chalk/index.css'; //element-ui 图标库

import MD5 from 'js-md5';

import './assets/common/css/module.less';

import './lib/dialogDrag'

// 引入echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts;

Vue.prototype.$addRoutes = addRoutes;
Vue.prototype.$bus = new Vue();
Vue.prototype.$MD5 = MD5;

import '@/api/mainApi.js'

//import '@/lib/utils'

Vue.use(ElementUI);

import SearchBlock from '~/SearchBlock/SearchBlock'
import YTable from '~/YTable/YTable'
import YForm from '~/YForm/YForm'
import YUploadImg from '~/YUploadImg/YUploadImg'
import YUploadVideo from '~/YUploadVideo/YUploadVideo'
import YUploadVideoSingle from '~/YUploadSingle/YUploadVideoSingle'
import YAddressSelector from '~/YAddressSelector/YAddressSelector'
import YCodeSelect from "~/YCodeSelect/YCodeSelect";
import YCodeCheckbox from "~/YCodeSelect/YCodeCheckbox";
import YRichText from "~/YRichText/YRichText";
import YDynamicTags from "~/YDynamicTags/YDynamicTags";
import YOverflowTooltip from "~/YOverflowTooltip/YOverflowTooltip";
import YImgSelect from "~/YImgSelect/YImgSelect";

Vue.component('SearchBlock', SearchBlock);
Vue.component('YTable', YTable);
Vue.component('YForm', YForm);
Vue.component('YUploadImg', YUploadImg);
Vue.component('YUploadVideo', YUploadVideo);
Vue.component('YUploadVideoSingle', YUploadVideoSingle);
Vue.component('YAddressSelector', YAddressSelector);
Vue.component('YCodeSelect', YCodeSelect);
Vue.component('YCodeCheckbox', YCodeCheckbox);
Vue.component('YRichText', YRichText);
Vue.component('YDynamicTags', YDynamicTags);
Vue.component('YOverflowTooltip', YOverflowTooltip);
Vue.component('YImgSelect', YImgSelect);

import Contextmenu from "vue-contextmenujs"
Vue.use(Contextmenu);

import AsyncComputed from 'vue-async-computed'
Vue.use(AsyncComputed)

/*富文本编辑器*/
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.use(VueQuillEditor/*,  { default global options } */)

//系统编码
window.businessSysCode = 'FARM_PLUS';

Vue.use(eIconPicker, {
  FontAwesome: true,
  ElementUI: true,
  eIcon: true,
  eIconSymbol: true
});

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
